package com.teemor.blog.service;

import com.teemor.blog.bean.condition.TbTopicCondition;
import com.teemor.blog.bean.entity.TbTopic;
import java.util.List;
import java.util.Map;

/**
 * @author: zhoulk
 * @Description: 原子服务
 * @date: 2019/11/26 14:50:14
 */
public interface ITopicService {
     /** 
   * @Function: com.teemor.blog.service.ITopicService.countTopic
   * @Description: 数量查询接口
   * @param: condition
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int countTopic(TbTopicCondition condition);

     /** 
   * @Function: com.teemor.blog.service.ITopicService.qryTopics
   * @Description: 列表查询接口
   * @param: condition
   * @return: List<TbTopic>
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    List<TbTopic> qryTopicTree(TbTopicCondition condition);

     /** 
   * @Function: com.teemor.blog.service.ITopicService.qryTopicById
   * @Description: 根据主键查询
   * @param: topicId
   * @return: TbTopic
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    TbTopic qryTopicById(Integer topicId);

     /** 
   * @Function: com.teemor.blog.service.ITopicService.addTopic
   * @Description: 新增接口
   * @param: inParam
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int addTopic(TbTopic inParam);

     /** 
   * @Function: com.teemor.blog.service.ITopicService.updTopicById
   * @Description: 根据Id更新接口
   * @param: inParam
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int updTopicById(TbTopic inParam);

    /**
     * @Function: com.teemor.blog.service.ITopicService.delTopic
     * @Description: 根据主题ID删除主题
     *
     * @param: topicId
     * @return: java.util.Map<java.lang.String,java.lang.Object>
     *
     * @version: v1.0.0
     * @author: zhoulk
     * @date: 2020/2/3 11:14
     *
     * Modification History:
     * Date             Author      Version            Description
     *---------------------------------------------------------*
     * 2020/2/3 11:14    zhoulk      v1.0.0             修改原因
     *
     */
    Map<String,Object> delTopic(Integer topicId);
}